package workspace.teaweb.Comment.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import workspace.teaweb.Comment.mappers.CommentMapper;
import workspace.teaweb.Comment.pojo.dto.CommentDTO;
import workspace.teaweb.Comment.pojo.entity.Comment;
import workspace.teaweb.Comment.service.CommentService;

@Service
public class CommentServiceImpl implements CommentService {

    @Autowired
    CommentMapper commentMapper;

    @Override
    public void insert(Comment comment) {
        commentMapper.insert(comment);
    }

    @Override
    public void update(CommentDTO commentDTO) {
        commentMapper.update(commentDTO);
    }
}
